package net.tng.strutsEjb.web.user;

import java.util.ArrayList;
import java.util.List;

import net.tng.strutsEjb.core.model.user.User;

import org.apache.struts.action.ActionForm;

public class UserForm extends ActionForm {

    /**
     * 
     */
    private static final long serialVersionUID = 1L;

    private List<User> users = new ArrayList<User>();

    private User currentUser = null;

    private String id;
    private String nom;
    private String prenom;

    public void initForm() {
        users = new ArrayList<User>();
        currentUser = null;
        id = null;
        nom = null;
        prenom = null;
    }

    public List<User> getUsers() {
        return users;
    }

    public void setUsers(List<User> users) {
        this.users = users;
    }

    public User getCurrentUser() {
        return currentUser;
    }

    public void setCurrentUser(User currentUser) {
        this.currentUser = currentUser;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getNom() {
        return nom;
    }

    public void setNom(String nom) {
        this.nom = nom;
    }

    public String getPrenom() {
        return prenom;
    }

    public void setPrenom(String prenom) {
        this.prenom = prenom;
    }

}
